package com.zmn.mcc.common.dto.role;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 类描述：角色搜索分页请求参数
 *
 * @author xujie
 * @since 2021/04/27 14:37
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "角色搜索分页请求参数")
public class RoleSearchDIO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 搜索值
     */
    @ApiModelProperty(value = "搜索值", required = true)
    private String searchVal;

    /**
     * 当前第几页
     */
    @NotNull(message = "当前第几页不能为空")
    @ApiModelProperty(value = "当前第几页", required = true)
    private Integer pageIndex;

    /**
     * 每页显示多少条
     */
    @NotNull(message = "每页显示多少条不能为空")
    @ApiModelProperty(value = "每页显示多少条", required = true)
    private Integer pageSize;

}
